"use client"
import { useFormStatus } from "react-dom"

export default function Submit() {
    const { pending } = useFormStatus();
    return (
        <button
            type="submit" className="bg-blue-500 text-white px-4 py-2 rounded disabled:bg-gray-400"
            disabled={pending}
        >
            Add Product
        </button>
    )
}
